const Mock = require('mockjs');
const data = Mock.mock({
    "list|9": [{
        name: '@cname',
        img: '@image(100x100,@color)',
        "num|0-10": 0,
        id: "@id"
    }]
})




module.exports = {
    devServer: {
        before(app) {
            app.get('/list', (req, res) => {
                res.send(data.list)
            })
        }
    }
}